#include "number.h"
#include "outputer.h"

#include <iostream>

using namespace std;

int main()
{
	Number num;

	EnglishOutputer engOut(&num);
	ChineseOutputer chsOut(&num);

	for (int i = 0; i <= 9; ++i)
	{
		num.setValue(i);

		// the strategy could be changed
		// during runtime.
		num.setOutputer(&engOut);
		num.output();
		num.setOutputer(&chsOut);
		num.output();
		cout<<endl;
	}

	return 0;
}
